package org.lex.ftplist.core;

import java.text.DateFormat;
import java.util.Date;

public class Index {
	private FtpUrl url = null;
	private Date date = null;

	public Index() {
	}

	public Index(FtpUrl url, Date date) {
		super();
		this.url = url;
		this.date = date;
	}

	public FtpUrl getUrl() {
		return url;
	}

	public void setUrl(FtpUrl url) {
		this.url = url;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String toString() {
		return url + " on " + DateFormat.getDateTimeInstance().format(date);
	}
}
